package com.itheima.homework.System;

public class Demo2 {
    public static void main(String[] args) {
        int[] arr={55,77,0,88,22,44,33};
        int j=2;
        int temp=arr[2];
        for (int i = 3; i < arr.length; i++) {
            if(i!=arr.length){
                arr[j]=arr[i];
                arr[i]=temp;
                j++;
            }
        }
        for (int i : arr) {
            System.out.println("i = " + i);
        }
    }
}
